package com.hr.grpc;

import io.grpc.ServerBuilder;

import java.io.IOException;

public class Server

{
    public static void main(String[] args) throws InterruptedException, IOException {
        ServerBuilder<?> serverBuilder = ServerBuilder.forPort(9000);
        serverBuilder.addService(new HelloGrpServer());
        io.grpc.Server build = serverBuilder.build();

        build.start();
        build.awaitTermination();
    }
}
